<%-- 
    Document   : login
    Created on : Dec 31, 2011, 7:03:24 PM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Beans.NgonNgu,Beans.ThamSoHT,Models.NgonNgu_Model,Models.ThamSoHT_Model"%>
<!--
Danh sách các tham số hệ thống ở trang này :
signin      password
username    language
-->
<%
    int nnmd  = NgonNgu_Model.NgonnguMD(); // biến ngôn ngữ mặc định hiện tại.
    NgonNgu[] dsnn = NgonNgu_Model.DSNgonNgu(); // danh sách ngôn ngữ hiện có.
    String dsts = "'signin','username','password','language'"; // chuỗi chứa các mã tham số của trang này.
    ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, nnmd); // mảng chứa các tham số của trang này.

    String language = mdsts[0].getTenTS();
    String password = mdsts[1].getTenTS();
    String signin = mdsts[2].getTenTS();
    String username = mdsts[3].getTenTS();


%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;user-scalable = no;" />
        <title>i-Order</title>
        <meta http-equiv="Content-Language" content="vi-vn" />
        <meta name="description" content="i-Order System " />
        <meta name="author" content="Quang Tan Nghia - Nguyen Thi Hoa" />
        <link rel="icon" href="images/icon.png" />
        <link rel="shortcut icon" href="images/icon.png" />
        <link rel="apple-touch-icon" href="images/icon.png"/>
        <link rel="apple-touch-icon-precomposed" href="images/icon.png"/>
        <link rel="stylesheet" type="text/css" href="css/login.css" />
        <link rel="stylesheet" type="text/css" href="css/jquery.alerts.css" />        
        <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.alerts.js"></script>
        <script type="text/javascript" src="js/ajax.js"></script>
        <script type="text/javascript" src="js/msg.js"></script>
       <style type="text/css">
           select { visibility: visible; -webkit-appearance: menulist-text;}
        </style>
    </head>
    <body onload="window.scrollTo(1,0);">
        <div id="login-container-outer" class="radius">
            <div id="login-container" class="radius">
                <div id="login-header" class="radius-top">
                    <div id="logo">
                        <img alt="login logo" src="images/logo.png"/>
                    </div>
                    <div id="formname">
                        <span style="color:#4f7df3;font-size: 31px;font-weight: bold;"><%= signin %></span>
                    </div>
                </div>
                <div id="login-content">
                    <form name="loginform" action="DangNhap_Controller?action=login" method="POST" onsubmit="return CheckLogin();">
                        <p>
                            <label style="color: white;"><%= username %> </label>
                            <input placeholder="<%= username %>" class="text-input" type="text" name="user" />
                        </p>
                        <div class="clear"></div>
                        <p>
                            <label style="color: white;"><%= password %>   </label>
                            <input placeholder="<%= password %>" class="text-input" type="password" name="pass" />
                        </p>
                        <p>
                            <label style="color: white;"><%= language %>   </label>

                            <select name="lang" class="text-input" >
                                <% for(int i=0; i < dsnn.length;i++)
                                { %>
                                <option style="background: url('images/<%=dsnn[i].getHinhAnh()%>') no-repeat center;"><%=dsnn[i].getTenNN()%></option>
                                <%}%>
                            </select>
                        </p>
                        <input class="nut" type="submit" name="login" value="<%= signin %>" />
                    </form>
                </div>
                <div id="login-extra" class="radius-bottom">
                    Copyright © 2011 - 2012 Designed by Quang Tấn Nghĩa & Nguyễn Thị Hoa
                </div>
            </div>
        </div>
    </body>
</html>
